package com.qf.controller;

import com.qf.pojo.Account;
import com.qf.service.AccountService;
import com.qf.service.impl.AccountServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description: 公用常量
 * @Data: 2022/9/6 18:00
 * @Pacakge: com.qf.controller
 * @ClassName: AccountController
 * @Author: fan
 */
@RestController
@RequestMapping("account")
public class AccountController {
    public AccountController(){
        System.out.println("控制层初始化");
    }
    @Autowired
    private AccountService accountService ;
    @RequestMapping("findAll")
    public List<Account> findAllAccount(){
        List<Account> accounts = accountService.findAccount();

        return accounts;
    }
}
